import request from "@/service";



export const  fetchUsersBycondition=(params)=>{
  return request.get("/user/getUserByCondition",{
    params:params
  })

}
export const addUser=(params)=>{
  return request.post('/user/addUser',params)
}
export const getUserDetail = (id) => {
  return request.get(`/user/detail/${id}`);
}
export const editUser=(params)=>{
  return request.post('/user/editUser',params)
}
export const  deleteUser=(ids:any[])=>{
  return request.delete('/user/deleteUser',{data:{ids:ids}})
}
